@charset "UTF-8";

$light-blue: #75cbeb;
$orange: #ffa257;
$green: #9adbcc;
$pink: #ff94ae;
$yellow: #fbcd5f;
$brown: #9a897b;


$iconList:
    food-vegetable    '\e6fe'   $light-blue,
    food-fruit    '\e6ff'   $green,
    food-meat   '\e700'     $pink,
    food-fish    '\e701'    $orange,
    food-egg    '\e702'     $pink,
    food-instance    '\e703'    $yellow,

    snack-sugar   '\e704'   $pink,
    snack-chocolate   '\e705'   $brown,
    snack-nut   '\e706'     $green,
    snack-meat   '\e707'    $orange,
    snack-cake   '\e708'    $yellow,
    snack-preserve   '\e709'    $light-blue,

    drink-water   '\e70a'   $yellow,
    drink-milk   '\e70b'    $light-blue,
    drink-wine   '\e70c'    $pink,

    oils-rice   '\e70d'     $light-blue,
    oils-noodles   '\e70e'  $yellow,
    oils-crops   '\e70f'    $pink,
    oils-mushroom   '\e710' $green,
    oils-sauce   '\e711'    $light-blue,
    oils-seasoning   '\e712'    $yellow,

    furniture-sofa   '\e713'    $light-blue,
    furniture-bed   '\e714'     $yellow,
    furniture-desk   '\e715'    $orange,
    furniture-TV-stand   '\e716'    $pink,
    furniture-coffee-table   '\e717'    $green,
    furniture-storge-box   '\e718'      $yellow,

    textile-bolster   '\e719'   $light-blue,
    textile-pillow-inner   '\e71a'  $orange,
    textile-bedclothes   '\e71b'    $green,
    textile-towel   '\e71c'     $pink,
    textile-slippers   '\e71d'  $yellow,
    textile-carpet   '\e71e'    $pink,

    kitchen-teacup   '\e71f'    $light-blue,
    kitchen-tableware   '\e720' $yellow,
    kitchen-cutlery   '\e721'   $green,
    kitchen-kitchenware   '\e722'   $pink,
    others   '\e723'   $green;

@each $icon in $iconList {
    $name: nth($icon, 1);
    $code: nth($icon, 2);
    $color: nth($icon, 3);

    .#{$name}{
        @include iconBefore($code) {
            font-size: .26rem;
            color: $color;
        };
    }
}

//个别样式
.oils-noodles::before {
    font-size: .3rem;
}